From ec0ebb15e535c111620fe47d90a24852a37f68ca Mon Sep 17 00:00:00 2001 From: "kaf24@localhost.localdomain" Date: Sat, 12 Aug 2006 15:58:52 +0100 Subject: [PATCH] [XM-TEST] Fix network tests for -route and -nat vif-nat and vif-route need to know domU ethX IP addresses in order to set up the appropriate routes.The new network test infrastructure is not providing the IP address on the vif line in /tmp/xm-test.conf; adding it turns out to be a one-liner. Tested with xm-test running with -bridge, -route, and -nat network scripts. Signed-off-by: Jim Dykman --- tools/xm-test/lib/XmTestLib/XenDevice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xm-test/lib/XmTestLib/XenDevice.py b/tools/xm-test/lib/XmTestLib/XenDevice.py index 25c4dda78c..cbe16d5658 100644 --- a/tools/xm-test/lib/XmTestLib/XenDevice.py +++ b/tools/xm-test/lib/XmTestLib/XenDevice.py @@ -265,6 +265,7 @@ class XenNetDevice(XenDevice): self.ip = xmtest_netconf.getIP(self.domain.getName(), self.id) self.addIfconfigCmd() + self.config["ip"] = str(self.ip) # Setup an alias for Dom0 self.dom0_alias_ip = xmtest_netconf.getIP("domain0", self.domain.getName()) -- 2.30.2